package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.entity.Result;

import java.util.List;
import java.util.Map;

public interface OrderService {

    //微信预约
    public Result order(Map map) throws Exception;

    //根据预约id查看预约详情
    public Map findById(Integer id);

    //分页查询
    public PageResult findPage(QueryPageBean queryPageBean);

    //电话预约
    public Result addOrderByTelephone(Map map,Integer[] setmealIds) throws Exception;

    //确定预约
    public void confirmOrder(Map map);

    //取消预约
    public void cancelOrder(Map map) throws Exception;

    //批量确定预约
    public void multiConfirmOrder(List<Map> list);

    //批量取消预约
    public void multiCancelOrder(List<Map> list)throws Exception;

}
